<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<table border="1" width="500px" id="mytable">
			<thead>
				<tr>
					<th>大类</th>
					<th>小类</th>
					<th>件数</th>
					<th>单位</th>
					<th>描述</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
		</table>
		
		<script type="text/javascript">
			let table = document.getElementById("mytable");
			console.log(table.childNodes);
			console.log(table.firstChild);
			console.log(table.firstElementChild);
			console.log(table.lastChild);
			console.log(table.lastElementChild);
			console.log(table.ownerDocument); //一般不用
			console.log(table.parentNode); //也可实现删除
			
			console.log(table.previousSibling); // 了解
			console.log(table.previousElementSibling); //Element掌握
			console.log(table.nextElementSibling);
			console.log(table.nextSibling);
			console.log(table.attributes);
			
		</script>
	</body>
</html>
